<!DOCTYPE html>
<html lang="en">
    <head>
        <title>卡牌翻转首页</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="./css/reset.css">
        <link rel="stylesheet" href="./css/bootstrap.css">
        <link rel="stylesheet" href="./css/index.css">
    </head>
    <body>
        <div class="main">
            <div class="menu">
                <div class="title">
                    <h1>请选择等级</h1>
                </div>
                <div class="btn_area">
                    <div class="btn">青铜</div>
                    <div class="btn">白银</div>
                    <div class="btn">黄金</div>
                    <div class="btn">铂金</div>
                    <div class="btn">钻石</div>
                    <div class="btn">王者</div>
                </div>
            </div>
        </div>

        <script src="./js/jquery2.1.0.js"></script>
        <script>
            $('.btn').on('click', function(){
                var level = $(this).index() + '';
                console.log(level);
                location.href = "./main.html?level=" + level;
            })
        </script>
    </body>
</html>